package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Gys generated by hbm2java
 */
@Entity
@Table(name = "gys")
public class Gys implements java.io.Serializable
{

    private Long id;
    private int version;
    private String username;
    private String operation;
    private Date optdate;
    private String gysmc;
    private String gysdz;
    private String phone;
    private String gycpmc;
    private Short ywgxnx;
    private BigDecimal wjqzk;
    private Short xh;
    private Jbqk jbqk;

    public Gys()
    {
    }

    public Gys( Long id )
    {
        this.id = id;
    }

    public Gys( Long id,
                String username,
                String operation,
                Date optdate,
                String gysmc,
                String gysdz,
                String phone,
                String gycpmc,
                Short ywgxnx,
                BigDecimal wjqzk,
                Short xh,
                Jbqk jbqk)
    {
        this.id = id;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.gysmc = gysmc;
        this.gysdz = gysdz;
        this.phone = phone;
        this.gycpmc = gycpmc;
        this.ywgxnx = ywgxnx;
        this.wjqzk = wjqzk;
        this.xh = xh;
        this.jbqk = jbqk;
    }
    
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "gysmc", length = 50)
    public String getGysmc()
    {
        return this.gysmc;
    }

    public void setGysmc( String gysmc )
    {
        this.gysmc = gysmc;
    }

    @Column(name = "gysdz", length = 100)
    public String getGysdz()
    {
        return this.gysdz;
    }

    public void setGysdz( String gysdz )
    {
        this.gysdz = gysdz;
    }

    @Column(name = "phone", length = 20)
    public String getPhone()
    {
        return this.phone;
    }

    public void setPhone( String phone )
    {
        this.phone = phone;
    }

    @Column(name = "gycpmc", length = 50)
    public String getGycpmc()
    {
        return this.gycpmc;
    }

    public void setGycpmc( String gycpmc )
    {
        this.gycpmc = gycpmc;
    }

    @Column(name = "ywgxnx")
    public Short getYwgxnx()
    {
        return this.ywgxnx;
    }

    public void setYwgxnx( Short ywgxnx )
    {
        this.ywgxnx = ywgxnx;
    }

    @Column(name = "wjqzk", precision = 18)
    public BigDecimal getWjqzk()
    {
        return this.wjqzk;
    }

    public void setWjqzk( BigDecimal wjqzk )
    {
        this.wjqzk = wjqzk;
    }

    @Column(name = "xh")
    public Short getXh()
    {
        return this.xh;
    }

    public void setXh( Short xh )
    {
        this.xh = xh;
    }

}
